// 选择省市区
const state = {
    provinceIdAccount: "", //省ID
    provinceDataAccount: [], //省的数据
    cityIdAccount: "", //市Id
    cityDataAccount: [] //市的数据
};

const getters = {
    provinceIdAccount: state => state.provinceIdAccount,
    provinceDataAccount: state => state.provinceDataAccount,
    cityIdAccount: state => state.cityIdAccount,
    cityDataAccount: state => state.cityDataAccount
};

const mutations = {
    // 获取省的ID
    getprovinceIdAccount(state, value) {
        state.provinceIdAccount = value;
    },
    // 获取省的ID
    getcityIdAccount(state, value) {
        state.cityIdAccount = value;
    },

    // 清空省和市的ID
    cleanAreaAccount(state, value) {
        state.provinceIdAccount = "";
        state.cityIdAccount = "";
    }
};

const actions = {};

export default {
    state,
    getters,
    mutations,
    actions
};
